package lesson.ch10;

public class People {
	String name;
	int age;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public People(){
		
	}
	public People(int a,String name) {
		this.age =a ;
		this.name = name; 
	}
	public String toString() {
		return name+"-"+age ;
	}
}
